﻿#pragma once
#include "Binay_Oper_Node.h"
class Minus_Node :
	public Binay_Oper_Node
{
public:
	Minus_Node(Base_Node* l, Base_Node* r) {
		this->left = l;
		this->right = r;
		this->type = Lexer::MINUS;
	}
	double getValue() {
		double leftValue = this->getLeftChild()->getValue();
		double rightValue = this->getRightChild()->getValue();
		double reValue = leftValue - rightValue;
		return reValue;
	}
};
